package com.example;
public class MainActivity {
    static {
        System.loadLibrary("hello");
       // System.load("/Users/a1/javacpp/Demo6/libhello.so");
    }
    private native void displayHello();
    public static void main(String[] args) {
        MainActivity mainActivity = new MainActivity();
        mainActivity.displayHello(); // 调用native方法
    }
}
